function AddDeviceV2(token, imei, sn, secret, simn, phonen,did, successfnc, failfnc)
{
    $.ajax({
        url:'/WebService1.asmx/AddDeviceV2',
        type:'post',
        headers:{'Content-Type':'application/x-www-form-urlencoded',},
        data:{token:token,imei:imei,serial_number:sn,secret:secret,sim_number:simn, phone_number:phonen, did:did},
        dataType:"text",
        success:function(data){
            if(successfnc) successfnc(data)
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {
            if(failfnc) failfnc(XMLHttpRequest, textStatus, errorThrown)
        },
    })
}

function AssistorLogin(name, password, successfnc, failfnc)
{
    $.ajax({
        url:'/WebService1.asmx/AssistorLogin',
        type:'post',
        headers:{'Content-Type':'application/x-www-form-urlencoded',},
        data:{name:name, password:password},
        dataType:"text",
        success:function(data){
            if(successfnc) successfnc(data)
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {
            if(failfnc) failfnc(XMLHttpRequest, textStatus, errorThrown)
        },
    })
}